package com.lizhaoshan.pojo;

import lombok.Data;

import java.util.List;

/**
 * @program: reggie
 * @description:
 * @author: lamour
 * @create: 2022-05-16 14:28
 **/
@Data
public class PageBean<T> {

    // 总记录数
    private Integer total;
    // 当前页数据
    private List<T> records;

    //每页显示的条目数
    private Integer size;

    //当前页码
    private Integer current;

    public PageBean() {
    }

    public PageBean(Integer total, List<T> records) {
        this.records = records;
        this.total = total;
    }

    public PageBean(List<T> records, Integer total, Integer size, Integer current) {
        this.records = records;
        this.total = total;
        this.size = size;
        this.current = current;
    }

}
